﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace ModelValidation.LongitudinalModel
{
	public class ModelsFilter : ISelectionFilter
	{
		public ModelsFilter(Autodesk.Revit.DB.Document doc)
		{
			this.m_Doc = doc;
		}

		public bool AllowElement(Element elem)
		{
			return elem is Wall || elem.Category.Id.IntegerValue == -2001320 || elem.Category.Id.IntegerValue == -2001330 || elem.Category.Id.IntegerValue == -2000100 || elem.Category.Id.IntegerValue == -2000032 || elem.Category.Id.IntegerValue == -2000011;
		}

		public bool AllowReference(Reference refer, XYZ pos)
		{
			throw new NotImplementedException();
		}

		private Document m_Doc;
	}
}
